wayland: Stop using subsurfaces for popovers
authorMatthias Clasen <mclasen@redhat.com>
Sat, 26 Aug 2017 19:34:46 +0000 (15:34 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 26 Aug 2017 19:34:46 +0000 (15:34 -0400)
Subsurfaces don't currently work with our new rendering,
and this makes popovers unusable. We can go back to using
subsurfaces for popovers when this is fixed.

gtk/gtkpopover.c

index 3f787fd9a111043d4ae22d92950ed10c5115177b..84f034bb1837816594117543e0603cf718ba147a 100644 (file)
@@ -475,7 +475,11 @@ gtk_popover_realize (GtkWidget *widget)
 
   gtk_widget_get_window_allocation (widget, &allocation);
 
-#ifdef GDK_WINDOWING_WAYLAND
+  /* We want to use subsurfaces for popovers, so they can extend outside
+   * the main window, but for that, we first need to have clean subsurface
+   * support that works with GSK.
+   */
+#if 0
   if (GDK_IS_WAYLAND_DISPLAY (gtk_widget_get_display (widget)))
     {
       GtkWidget *toplevel = gtk_widget_get_toplevel (widget);